<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="如何手动停止TDSQL恢复任务">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="tdsql_gud_086.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="tdsql_gud_094">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>如何手动停止TDSQL恢复任务</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="tdsql_gud_094"></a><a name="tdsql_gud_094"></a>
  <h1 class="topictitle1">如何手动停止TDSQL恢复任务</h1>
  <div>
   <p>在TDSQL恢复任务执行过程中如需手动停止任务，可请参考本章节操作。</p>
   <div class="section">
    <h4 class="sectiontitle">操作须知</h4>
    <p>在恢复任务执行过程中停止恢复任务可能对生产端的数据库环境或数据产生影响，请谨慎操作。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>使用<strong>root</strong>用户登录恢复的目标实例所有的数据节点。</span></li>
     <li><span>执行以下命令，停止恢复任务。</span><p></p><p><strong>cd </strong><em>/opt</em><strong>/DataBackup/ProtectClient</strong></p> <p><strong>sh stop.sh</strong></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>命令中的<em>/opt</em>为客户端的安装目录，请根据实际替换。</p>
       </div>
      </div> <p></p></li>
     <li><span>选择<span class="uicontrol">“任务”</span>。</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>对于1.5.0版本，请选择。</p>
       </div>
      </div> <p></p></li>
     <li><span>查看该恢复任务的任务状态，待任务状态显示为“<span>失败</span>”后，重新登录恢复的目标实例所有的数据节点，查询是否存在<em>4002</em><strong>_deploy.conf</strong>文件。</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p><em>4002</em><strong>_deploy.conf</strong>中的<em>4002</em>为TDSQL存储节点使用的端口，请以实际为准。以下操作以<em>4002</em><strong>_deploy.conf</strong>为例进行说明。</p>
       </div>
      </div> <p><strong>cd /data/oc_agent/log/</strong></p> <p><strong>ll</strong><strong> |grep</strong> <strong>deploy</strong></p>
      <ul>
       <li>如果存在<em>4002</em><strong>_deploy.conf</strong>文件，则执行<strong>rm </strong><em>4002</em><strong>_deploy.conf</strong>命令删除该文件，再继续执行<a href="#tdsql_gud_094__li0733183812419">5</a>。</li>
       <li>如果不存在<em>4002</em><strong>_deploy.conf</strong>文件，则继续执行<a href="#tdsql_gud_094__li0733183812419">5</a>。</li>
      </ul> <p></p></li>
     <li id="tdsql_gud_094__li0733183812419"><a name="tdsql_gud_094__li0733183812419"></a><a name="li0733183812419"></a><span>在恢复的目标实例所有的数据节点执行以下命令，启动恢复任务。</span><p></p><p><strong>cd </strong><em>/opt</em><strong>/DataBackup/ProtectClient</strong></p> <p><strong>sh start.sh</strong></p> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="tdsql_gud_086.html">常见问题</a>
    </div>
   </div>
  </div>
 </body>
</html>